package com.leixiaoqiao.dao.impl;


import com.leixiaoqiao.dao.AdminDao;
import com.leixiaoqiao.pojo.Admin;
import com.leixiaoqiao.util.SqlSessionUtil;
import org.apache.ibatis.session.SqlSession;

public class AdminDaoImpl implements AdminDao {
    private AdminDao adminDao;
    public AdminDaoImpl(){
        SqlSession session = SqlSessionUtil.getSession();
        adminDao = session.getMapper(AdminDao.class);
    }
    @Override
    public Admin queryAdmin(Admin admin) {
        return adminDao.queryAdmin(admin);
    }
}
